package com.mtz.dateobject;

import com.mtz.enums.DeleteEnum;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * 问答修改记录表
 * @author 煜赜
 * @date 2018/11/21 10:07
 */
@Data
@Entity
@DynamicUpdate
@DynamicInsert
public class QuestionHistory {

    /** 问答记录流水id **/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /** 关联的问题id **/
    private Integer questionId;

    /** 版本号 **/
    private Integer version;

    /** 问题描述 **/
    private String question;

    /** 问题描述关键词 **/
    private String keyword;

    /** 答案描述 **/
    private String answer;

    /** 修改人 **/
    private String author;

    /** 答案视角 **/
    private Integer angle;

    private Date createTime;

    private Date updateTime;
}
